package com.budwk.app.jim.server;

import org.jim.core.ImChannelContext;
import org.jim.core.packets.ChatBody;
import org.jim.server.processor.chat.BaseAsyncChatMessageProcessor;
import org.nutz.ioc.Ioc;

/**
 * @author ZY.Wang
 * @since 2023/6/14
 */
public class ChatMessageProcessor extends BaseAsyncChatMessageProcessor {

    private final Ioc ioc;

    public ChatMessageProcessor(Ioc ioc) {
        super();
        this.ioc = ioc;
    }

    @Override
    protected void doProcess(ChatBody chatBody, ImChannelContext imChannelContext) {
        // TODO 用来存储数据
        System.out.println(chatBody);
    }
}
